<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/layout.css"/> 
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/content.css"/>
    </head>
    <body>
        <div class="cbox col9 f_l">
        <form action='<{:U('add')}>' method="POST">
            <div class="header"><h3>添加栏目</h3></div>
            <div class="content">
                <div class="innerbox">
                    
                    <fieldset class="col4 f_l">
                        <label>栏目名 Type Name</label>
                        <input type="text" name='name'/>
                    </fieldset>
                    <fieldset class="col5 f_l">
                        <label>关键词(以|分隔) Keywords</label>
                        <input type="text" name='keywords'/>
                    </fieldset>
                    <div class="f_c"></div>
                    <fieldset class="col9">
                        <label>栏目描述 Description</label>
                        <textarea  name='description'></textarea>
                    </fieldset>
                    <fieldset class='col5 f_l'>
                        <label>频道模型 Channel</label>
                        <select name='channelid'>
                            <option>--请选择--</option>
                            <{:arr2option($channels,"id","name",$ptype['channelid'])}>
                        </select>
                    </fieldset>
                    <fieldset class='col4 f_l'>
                        <label>上级栏目 Parent Type</label>
                        <select name='pid'>
                            <option value='0'>--根--</option>
                            <volist name='typelist' id='eachtype'>
                                <option value='<{$eachtype.id}>' <if condition="$eachtype['id'] eq $ptype['id']">selected</if>>|<{$eachtype.lv|str_repeat='-',###}><{$eachtype.name}></option>
                            </volist>
                        </select>
                    </fieldset>
                    <div class="f_c"></div>
                    <fieldset class="col8">
                        <label>栏目别名</label>
                        <input type="text" name='alias'/>
                        <p>英文和数字的组合，用于栏目个性url显示，留空则使用分类id</p>
                    </fieldset>
                    <fieldset class='col4 f_l'>
                        <label>列表页模板</label>
                        <input type="text" name='listtpl'/>
                        <p>相对于前台分组Tpl目录的文件名，留空则使用默认模板</p>
                    </fieldset>
                    <fieldset class='col4 f_l'>
                        <label>内容页模板</label>
                        <input type="text" name='arctpl'/>
                        <p>相对于前台分组Tpl目录的文件名，留空则使用默认模板</p>
                    </fieldset>
                    <div class="f_c"></div>
                </div>
            </div>
            <div class="footer">
                <div class="submit f_r">
                    <input type="submit" value="Submit" class="subbtn"/>
                    <input type="reset" value="Reset"/>
                </div>
            </div>
        </form>
        </div>
        
    </body>
</html>
